/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import edu.ucue.ECU.exp.BuscarDatosEmergenciaException;
import edu.ucue.ECU.ngc.AlarmaAccidente;
import edu.ucue.ECU.ngc.AlarmaFactory;
import edu.ucue.ECU.ngc.AlarmaIncendio;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Usuario
 */
public class testAlarmaFactory {
    AlarmaFactory alarmaFactory;
    public testAlarmaFactory() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
        alarmaFactory=new AlarmaFactory();
    }
    
    @After
    public void tearDown() {
    }
    
    @Test
    public void testcrearAlarmar() throws BuscarDatosEmergenciaException {
        System.out.println("crear alarma");
        String emergencia="Incendio";
        AlarmaAccidente alarma=new AlarmaAccidente();
        assertEquals(alarma.getClass(),(alarmaFactory.crearAlarma(emergencia)).getClass());  
    }    
    // TODO add test methods here.
    // The methods must be annotated with annotation @Test. For example:
    //
    // @Test
    // public void hello() {}
}
